package com.abaaba.project2.mapper;

import com.abaaba.project2.bean.Category;
import com.abaaba.project2.bean.CategoryExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {
    long countByExample(CategoryExample example);

    int deleteByExample(CategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    List<Category> selectByExample(CategoryExample example);

    Category selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByExample(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> selectByCategoryPid(Integer id);

    List<Category> selectAllByCategory();

    int updateByPrimaryAndDeleted(int i, boolean deleted);


    List<Category> selectByChannerLimitFive(String str, Integer limitNumber);

    List<Category> selectByAllUseCategoryId(Integer id);

    List<Category> selectByIdOrPidOfCategory(Integer id);


    Category selectByIdSearchPId(Integer id);

    Category selectByCategoryIdOfGoods(Integer id);


    List<Category> selectByPidOfId(Integer id);

    List<Category> selectByChannerLimitFive2(String str2, Integer limitNumber2);
}